package org.dromara.tearoom.domain.bo;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;

import java.io.Serial;
import java.time.LocalDateTime;

@Data
public class TerPayOrderBo {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String id;
    /**
     * 开放平台id
     */
    @NotNull(message = "openid不能为空", groups = { AddGroup.class, EditGroup.class })
    private String openId;
    /**
     * 茶室id
     */
    @NotNull(message = "茶室id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long tearoomId;

    /**
     * 入住人电话
     */
    private String mobile;

    private String KeyId;


    @NotNull(message = "订单总价不能为空")
    private Integer totalPrice;

    @NotNull(message = "预付金额不能为空")
    private Integer prepayAmount;

    @NotNull(message = "预定时间(h)不能为空")
    private Float presetTime;

    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;
    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    private String OrderStatus;
    private String PaymentMethod;
    private String DoorKey;

    private String oldId;
}
